﻿using MediatR;
using StoreIGet.Applications.Command;
using StoreIModels;
using StoreRepositorys.Interface;

namespace StoreIGet.Applications.CommandHandler
{
    public class AftermarketShowCommandler : IRequestHandler<AftermarketShowCommand, List<AftermarketModel>>
    {
        public readonly IAftermarketRepository _aftermarketRepository;
        public AftermarketShowCommandler(IAftermarketRepository aftermarketRepository)
        {
            _aftermarketRepository = aftermarketRepository;
        }

        public async Task<List<AftermarketModel>> Handle(AftermarketShowCommand request, CancellationToken cancellationToken)
        {
            throw new NotImplementedException();
            //return await _aftermarketRepository.GetAllAsync();
        }
    }
}
